﻿
using System.Collections.Generic;
namespace AutoClub.Core.Domain.Dao
{
    public interface IRaceRepo
    {
        /// <summary>
        /// Persists an entity in the database
        /// </summary>
        /// <returns>The persisted entity</returns>
        Race Add(Race item);

        /// <summary>
        /// Gets all available states for a race
        /// </summary>
        IEnumerable<RaceState> GetAllRaceStates();

        /// <summary>
        /// Gets all races
        /// </summary>
        /// <returns></returns>
        IEnumerable<Race> GetAll();
    }
}
